<table border="0" width="100%">
<tr>
	<td bgcolor="#ddddf7"><b>Service Provider Search</b></td>
</tr>
</table>
<table border="0" width="100%">
<tr>
	<td valign="top">
		<form action="<?=$PHP_SELF; ?>?search=1" method="POST" name="searchForm">
		<input type="hidden" name="visible" value="<?=$visible; ?>">
		<select name="disability_PID" size="1" style="width: 250px;">
			<option>Select a Disability...</option>
			<option>
			<?
			// 1.  Get disabilities
			$sql1 = "SELECT * from oa_ctb_DisabilityTypes ORDER BY DisabilityTypeName";
			$result1 = mysql_db_query($dbname,$sql1);
			
			while ($value1 = mysql_fetch_assoc($result1)) {	
				$dID   = $value1[DisabilityType_PID];
				$dName = stripslashes($value1[DisabilityTypeName]);
				
				if (!empty($disability_PID) && ($disability_PID == $dID)) {
				    echo "<option value=\"$dID\" selected>$dName</option>\n";
				} else {
					echo "<option value=\"$dID\">$dName</option>\n";
				}
			}
			?>
		</select><br>
		<select name="product_PID" size="1" style="width: 250px;">
			<option>Select a Service Category...</option>
			<option>
			<?
			// 2.  Get service categories
			$sql2 = "SELECT * from oa_ctb_ProductTypes ORDER BY ProductTypeName";
			$result2 = mysql_db_query($dbname,$sql2);
		
			while ($value2 = mysql_fetch_assoc($result2)) {	
				$sID   = $value2[ProductType_PID];
				$sName = stripslashes($value2[ProductTypeName]);
						
				if (!empty($product_PID) && ($product_PID == $sID)) {
				    echo "<option value=\"$sID\" selected>$sName</option>\n";
				} else {
                   	echo "<option value=\"$sID\">$sName</option>\n";
                }
			}
			?>
		</select>
	</td>	
	<td bgcolor="#ffffff">
		<input type="text" name="keyword" size="25" value="<?=$keyword; ?>" onFocus="searchForm.keyword.value=''";><br>
		<input type="image" src="images/button_search.gif" border="0" alt="Go Search!">
	</form>
	</td>
	<td bgcolor="#ffffff">
	<div class="pageCount" align="right">
	<form action="<?=$PHP_SELF; ?>?<?=$linkString; ?>" name="pageForm" method="POST" onsubmit="return checkPages(<?=$pages; ?>);">
	
	<?
	$pagePrev = $page-1;
	$pageNext = $page+1;
	$startPrev = $start-$limit;
	$startNext = $start+$limit;
	?>
	<? if ($pages > 1) { ?>
	<? if ($page > 1) { ?>
	<a href="<?=$PHP_SELF; ?>?page=<?=$pagePrev; ?>&start=<?=$startPrev; ?>&<?=$linkString; ?>"><img src="images/prev.gif" border="0" alt="Previous Page"></a>
	<? } ?>
	Page <b class="selPage"><?=$page; ?></b> of <b><?=$pages; ?></b>
	<a href="<?=$PHP_SELF; ?>?page=<?=$pageNext; ?>&start=<?=$startNext; ?>&<?=$linkString; ?>"><img src="images/next.gif" border="0" alt="Next Page"></a>
	<? }
	// Reset
	$pagePrev = null;
	$pageNext = null;
	$startPrev = null;
	$startNext = null;
	?>
	
	<input type="hidden" name="" value="">
	<small>Go to page:</small> <input type="text" name="page_current" size="4" maxlength="4" class="text" value="<?=$page; ?>" onFocus="pageForm.page_current.value=''";>
	<input type="image" src="images/button_go.gif" border="0" alt="Go"><br>
	<small>Records/page:</small> 
	<select name="limit" size="1" style="width: 40px;">
	<option value="20"
	<? if ($limit == 20) { echo " selected"; } ?>
	>20</option>
	<option value="40"
	<? if ($limit == 40) { echo " selected"; } ?>
	>40</option>
	<option value="60"
	<? if ($limit == 60) { echo " selected"; } ?>
	>60</option>
	<option value="80"
	<? if ($limit == 80) { echo " selected"; } ?>
	>80</option>
	<option value="100"
	<? if ($limit == 100) { echo " selected"; } ?>
	>100</option>
	</select>
	<input type="image" src="images/button_go.gif" border="0" alt="Go">
	</div></form>
	</td>
</tr>
</table>